]> dgit.raspbian.org Git - gnome-shell.git/commit
ShellNetworkAgent: don't access request fields if the operation is cancelled
authorGiovanni Campagna <gcampagna@src.gnome.org>
Mon, 13 Feb 2012 14:54:46 +0000 (15:54 +0100)
committerGiovanni Campagna <gcampagna@src.gnome.org>
Tue, 14 Feb 2012 18:16:50 +0000 (19:16 +0100)
commitc5804c19294cd0fb0e6670a6df957a95836af89c
tree1576f00c02d29527329f67fb9d21bcc70bdbdf04
parent92276c5e70090191a09a69ba31daf1c3675db56e
ShellNetworkAgent: don't access request fields if the operation is cancelled

When the operation is cancelled by NetworkManager, the request is
cancelled immediately. Later when gnome-keyring invokes the callback
notifying the error we must therefore not access its memory.
Previously the callback would mistakenly treat "cancelled" (which
indicates a programmatic cancel) as "denied" (which means the user
clicked "Cancel" on the keyring prompt)

https://bugzilla.gnome.org/show_bug.cgi?id=658484
src/shell-network-agent.c